home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 49
/
Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso
/
-serious-
/
misc
/
charmap
/
source
/
cmap_strings.h
< prev
next >
Wrap
C/C++ Source or Header
|
1999-11-30
|
9KB
|
329 lines
#ifndef CMAP_STRINGS_H
#define CMAP_STRINGS_H
/****************************************************************************/
/* This file was created automatically by CatComp.
* Do NOT edit by hand!
*/
#ifndef EXEC_TYPES_H
#include <exec/types.h>
#endif
#ifdef CATCOMP_ARRAY
#undef CATCOMP_NUMBERS
#undef CATCOMP_STRINGS
#define CATCOMP_NUMBERS
#define CATCOMP_STRINGS
#endif
#ifdef CATCOMP_BLOCK
#undef CATCOMP_STRINGS
#define CATCOMP_STRINGS
#endif
/****************************************************************************/
#ifdef CATCOMP_NUMBERS
#define MSG_WINTITLE 0
#define MSG_STRGAD 1
#define MSG_COPY 2
#define MSG_PASTE 3
#define MSG_CLEAR 4
#define MSG_NEWFONT 5
#define MSG_MENUTITLE 6
#define MSG_MENUFONTSCREEN 7
#define MSG_MENUTEXTFONT 8
#define MSG_MENUCUSTOMFONT 9
#define MSG_MENUCHARSET 10
#define MSG_MENUASCII8 11
#define MSG_MENUISOLATIN1 12
#define MSG_MENUSTDAMIGA 13
#define MSG_MENUCLEARTXT 14
#define MSG_NEXTSCR 15
#define MSG_MENUABOUT 16
#define MSG_MENUICONOFY 17
#define MSG_MENUHIDE 18
#define MSG_MENUQUIT 19
#define MSG_BADOS 20
#define MSG_SCREENLOCK 21
#define MSG_ERRMENUBAR 22
#define MSG_ERRLAYOUT 23
#define MSG_FONTTOOBIG 24
#define MSG_ERRGADGET 25
#define MSG_ABOUT 26
#define MSG_ABOUTMSG 27
#define MSG_CONTINUE 28
#define MSG_COMMONAME 29
#define MSG_DESCLINE1 30
#define MSG_DESCLINE2 31
#define MSG_ASLTITLE 32
#define MSG_NOASL 33
#define MSG_BUTTON1 34
#define MSG_BUTTON2 35
#define MSG_CODE 36
#define MSG_HEX 37
#define MSG_DEC 38
#define MSG_OCT 39
#define MSG_NOMEM 40
#endif /* CATCOMP_NUMBERS */
/****************************************************************************/
#ifdef CATCOMP_STRINGS
#define MSG_WINTITLE_STR "ISO Latin1 charset"
#define MSG_STRGAD_STR "String:"
#define MSG_COPY_STR "Copy"
#define MSG_PASTE_STR "Paste"
#define MSG_CLEAR_STR "Clear"
#define MSG_NEWFONT_STR "Font..."
#define MSG_MENUTITLE_STR "Project"
#define MSG_MENUFONTSCREEN_STR "Screen font"
#define MSG_MENUTEXTFONT_STR "Text font"
#define MSG_MENUCUSTOMFONT_STR "Choose one..."
#define MSG_MENUCHARSET_STR "Charset"
#define MSG_MENUASCII8_STR "8bits ASCII"
#define MSG_MENUISOLATIN1_STR "ISO Latin1"
#define MSG_MENUSTDAMIGA_STR "Amiga Standard"
#define MSG_MENUCLEARTXT_STR "Clear text"
#define MSG_NEXTSCR_STR "Next screen"
#define MSG_MENUABOUT_STR "About..."
#define MSG_MENUICONOFY_STR "Iconify"
#define MSG_MENUHIDE_STR "Hide"
#define MSG_MENUQUIT_STR "Quit"
#define MSG_BADOS_STR "Requires WB v36 or more."
#define MSG_SCREENLOCK_STR "The default public screen is locked!"
#define MSG_ERRMENUBAR_STR "Unable to create menu bar!"
#define MSG_ERRLAYOUT_STR "Error in the menu layout!"
#define MSG_FONTTOOBIG_STR "The size of your font is too big."
#define MSG_ERRGADGET_STR "Unable to alloc gadgets ressoures."
#define MSG_ABOUT_STR "About"
#define MSG_ABOUTMSG_STR "CharMap v" CHARMAP_VERSION "\n© T.Pierron\nFree software under GNU license\nProvide with no warranty!"
#define MSG_CONTINUE_STR "Continue"
#define MSG_COMMONAME_STR "CharMap"
#define MSG_DESCLINE1_STR "A little tool, enable you to display"
#define MSG_DESCLINE2_STR "the whole charset of a font"
#define MSG_ASLTITLE_STR "Choose your font"
#define MSG_NOASL_STR "Unable to open the ASL requester!"
#define MSG_BUTTON1_STR "Choose"
#define MSG_BUTTON2_STR "Quit"
#define MSG_CODE_STR "Code:"
#define MSG_HEX_STR "Hex:"
#define MSG_DEC_STR "Dec:"
#define MSG_OCT_STR "Oct:"
#define MSG_NOMEM_STR "Not enough memory"
#endif /* CATCOMP_STRINGS */
/****************************************************************************/
#ifdef CATCOMP_ARRAY
struct CatCompArrayType
{
LONG cca_ID;
STRPTR cca_Str;
};
static const struct CatCompArrayType CatCompArray[] =
{
{MSG_WINTITLE,(STRPTR)MSG_WINTITLE_STR},
{MSG_STRGAD,(STRPTR)MSG_STRGAD_STR},
{MSG_COPY,(STRPTR)MSG_COPY_STR},
{MSG_PASTE,(STRPTR)MSG_PASTE_STR},
{MSG_CLEAR,(STRPTR)MSG_CLEAR_STR},
{MSG_NEWFONT,(STRPTR)MSG_NEWFONT_STR},
{MSG_MENUTITLE,(STRPTR)MSG_MENUTITLE_STR},
{MSG_MENUFONTSCREEN,(STRPTR)MSG_MENUFONTSCREEN_STR},
{MSG_MENUTEXTFONT,(STRPTR)MSG_MENUTEXTFONT_STR},
{MSG_MENUCUSTOMFONT,(STRPTR)MSG_MENUCUSTOMFONT_STR},
{MSG_MENUCHARSET,(STRPTR)MSG_MENUCHARSET_STR},
{MSG_MENUASCII8,(STRPTR)MSG_MENUASCII8_STR},
{MSG_MENUISOLATIN1,(STRPTR)MSG_MENUISOLATIN1_STR},
{MSG_MENUSTDAMIGA,(STRPTR)MSG_MENUSTDAMIGA_STR},
{MSG_MENUCLEARTXT,(STRPTR)MSG_MENUCLEARTXT_STR},
{MSG_NEXTSCR,(STRPTR)MSG_NEXTSCR_STR},
{MSG_MENUABOUT,(STRPTR)MSG_MENUABOUT_STR},
{MSG_MENUICONOFY,(STRPTR)MSG_MENUICONOFY_STR},
{MSG_MENUHIDE,(STRPTR)MSG_MENUHIDE_STR},
{MSG_MENUQUIT,(STRPTR)MSG_MENUQUIT_STR},
{MSG_BADOS,(STRPTR)MSG_BADOS_STR},
{MSG_SCREENLOCK,(STRPTR)MSG_SCREENLOCK_STR},
{MSG_ERRMENUBAR,(STRPTR)MSG_ERRMENUBAR_STR},
{MSG_ERRLAYOUT,(STRPTR)MSG_ERRLAYOUT_STR},
{MSG_FONTTOOBIG,(STRPTR)MSG_FONTTOOBIG_STR},
{MSG_ERRGADGET,(STRPTR)MSG_ERRGADGET_STR},
{MSG_ABOUT,(STRPTR)MSG_ABOUT_STR},
{MSG_ABOUTMSG,(STRPTR)MSG_ABOUTMSG_STR},
{MSG_CONTINUE,(STRPTR)MSG_CONTINUE_STR},
{MSG_COMMONAME,(STRPTR)MSG_COMMONAME_STR},
{MSG_DESCLINE1,(STRPTR)MSG_DESCLINE1_STR},
{MSG_DESCLINE2,(STRPTR)MSG_DESCLINE2_STR},
{MSG_ASLTITLE,(STRPTR)MSG_ASLTITLE_STR},
{MSG_NOASL,(STRPTR)MSG_NOASL_STR},
{MSG_BUTTON1,(STRPTR)MSG_BUTTON1_STR},
{MSG_BUTTON2,(STRPTR)MSG_BUTTON2_STR},
{MSG_CODE,(STRPTR)MSG_CODE_STR},
{MSG_HEX,(STRPTR)MSG_HEX_STR},
{MSG_DEC,(STRPTR)MSG_DEC_STR},
{MSG_OCT,(STRPTR)MSG_OCT_STR},
{MSG_NOMEM,(STRPTR)MSG_NOMEM_STR},
};
#endif /* CATCOMP_ARRAY */
/****************************************************************************/
#ifdef CATCOMP_BLOCK
static const char CatCompBlock[] =
{
"\x00\x00\x00\x00\x00\x14"
MSG_WINTITLE_STR "\x00\x00"
"\x00\x00\x00\x01\x00\x08"
MSG_STRGAD_STR "\x00"
"\x00\x00\x00\x02\x00\x06"
MSG_COPY_STR "\x00\x00"
"\x00\x00\x00\x03\x00\x06"
MSG_PASTE_STR "\x00"
"\x00\x00\x00\x04\x00\x06"
MSG_CLEAR_STR "\x00"
"\x00\x00\x00\x05\x00\x08"
MSG_NEWFONT_STR "\x00"
"\x00\x00\x00\x06\x00\x08"
MSG_MENUTITLE_STR "\x00"
"\x00\x00\x00\x07\x00\x0C"
MSG_MENUFONTSCREEN_STR "\x00"
"\x00\x00\x00\x08\x00\x0A"
MSG_MENUTEXTFONT_STR "\x00"
"\x00\x00\x00\x09\x00\x0E"
MSG_MENUCUSTOMFONT_STR "\x00"
"\x00\x00\x00\x0A\x00\x08"
MSG_MENUCHARSET_STR "\x00"
"\x00\x00\x00\x0B\x00\x0C"
MSG_MENUASCII8_STR "\x00"
"\x00\x00\x00\x0C\x00\x0C"
MSG_MENUISOLATIN1_STR "\x00\x00"
"\x00\x00\x00\x0D\x00\x10"
MSG_MENUSTDAMIGA_STR "\x00\x00"
"\x00\x00\x00\x0E\x00\x0C"
MSG_MENUCLEARTXT_STR "\x00\x00"
"\x00\x00\x00\x0F\x00\x0C"
MSG_NEXTSCR_STR "\x00"
"\x00\x00\x00\x10\x00\x0A"
MSG_MENUABOUT_STR "\x00\x00"
"\x00\x00\x00\x11\x00\x08"
MSG_MENUICONOFY_STR "\x00"
"\x00\x00\x00\x12\x00\x06"
MSG_MENUHIDE_STR "\x00\x00"
"\x00\x00\x00\x13\x00\x06"
MSG_MENUQUIT_STR "\x00\x00"
"\x00\x00\x00\x14\x00\x1A"
MSG_BADOS_STR "\x00\x00"
"\x00\x00\x00\x15\x00\x26"
MSG_SCREENLOCK_STR "\x00\x00"
"\x00\x00\x00\x16\x00\x1C"
MSG_ERRMENUBAR_STR "\x00\x00"
"\x00\x00\x00\x17\x00\x1A"
MSG_ERRLAYOUT_STR "\x00"
"\x00\x00\x00\x18\x00\x22"
MSG_FONTTOOBIG_STR "\x00"
"\x00\x00\x00\x19\x00\x24"
MSG_ERRGADGET_STR "\x00\x00"
"\x00\x00\x00\x1A\x00\x06"
MSG_ABOUT_STR "\x00"
"\x00\x00\x00\x1B\x00\x64"
MSG_ABOUTMSG_STR "\x00\x00"
"\x00\x00\x00\x1C\x00\x0A"
MSG_CONTINUE_STR "\x00\x00"
"\x00\x00\x00\x1D\x00\x08"
MSG_COMMONAME_STR "\x00"
"\x00\x00\x00\x1E\x00\x26"
MSG_DESCLINE1_STR "\x00\x00"
"\x00\x00\x00\x1F\x00\x1C"
MSG_DESCLINE2_STR "\x00"
"\x00\x00\x00\x20\x00\x12"
MSG_ASLTITLE_STR "\x00\x00"
"\x00\x00\x00\x21\x00\x22"
MSG_NOASL_STR "\x00"
"\x00\x00\x00\x22\x00\x08"
MSG_BUTTON1_STR "\x00\x00"
"\x00\x00\x00\x23\x00\x06"
MSG_BUTTON2_STR "\x00\x00"
"\x00\x00\x00\x24\x00\x06"
MSG_CODE_STR "\x00"
"\x00\x00\x00\x25\x00\x06"
MSG_HEX_STR "\x00\x00"
"\x00\x00\x00\x26\x00\x06"
MSG_DEC_STR "\x00\x00"
"\x00\x00\x00\x27\x00\x06"
MSG_OCT_STR "\x00\x00"
"\x00\x00\x00\x28\x00\x12"
MSG_NOMEM_STR "\x00"
};
#endif /* CATCOMP_BLOCK */
/****************************************************************************/
struct LocaleInfo
{
APTR li_LocaleBase;
APTR li_Catalog;
};
#ifdef CATCOMP_CODE
STRPTR GetString(struct LocaleInfo *li, LONG stringNum)
{
LONG *l;
UWORD *w;
STRPTR builtIn;
l = (LONG *)CatCompBlock;
while (*l != stringNum)
{
w = (UWORD *)((ULONG)l + 4);
l = (LONG *)((ULONG)l + (ULONG)*w + 6);
}
builtIn = (STRPTR)((ULONG)l + 6);
#define XLocaleBase LocaleBase
#define LocaleBase li->li_LocaleBase
if (LocaleBase)
return(GetCatalogStr(li->li_Catalog,stringNum,builtIn));
#define LocaleBase XLocaleBase
#undef XLocaleBase
return(builtIn);
}
#endif /* CATCOMP_CODE */
/****************************************************************************/
#endif /* CMAP_STRINGS_H */